/**
 * Site header
 */
.site-header {
    min-height: $header-height;
    background-color: #333;

    // Positioning context for the mobile navigation icon
    position: relative;
    //border-bottom: 3px solid rgba(0,0,0,0.075);
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.site-header-fixed {

    // Positioning context for the mobile navigation icon
    right: 0;
    left: 0;
    position: fixed;
}

.site-title {
    font-size: 24px;
    //font-weight: 300;
    line-height: $header-height;
    letter-spacing: -1px;
    margin-bottom: 0;
    float: left;
    &,
    &:hover {
            color: rgba(255,255,255,0.9);
    }
}

.site-nav {
    float: right;
    line-height: $header-height;

    .menu-icon {
        display: none;
    }

    .page-link {
        color: rgba(255,255,255,0.8);
        &:hover {
            color: rgba(255,255,255,0.9);
        }
    }

    .page-link-selected {
        color: rgba(255,255,255,1);
    }

    .nav-item {
        float: right;
        padding-left: 15px;
        padding-right: 15px;

        &:not(:last-child) {
            margin-left: 10px;
        }
        &:hover {
            background-color: rgba(255,255,255,0.1);
            //border-bottom: 3px solid rgba(255,255,255,0.9);
        }
    }

    .nav-selected {
        //border-bottom: 3px solid rgba(255,255,255,0.9);
    }

    @include media-query($on-palm) {
        position: absolute;
        right: $spacing-unit / 2;
        //border-radius: 5px;
        //text-align: right;
      
        .menu-icon {
            display: block;
            float: right;
            width: 36px;
            height: 26px;
            line-height: 0;
            text-align: center;
            margin-top: 18px;

            > svg {
                width: 18px;
                height: 15px;

                path {
                    fill: rgba(255,255,255,0.5);
                }
            }
        }

        .trigger {
            clear: both;
            display: none;
            margin-top: 50px;
        }

        &:hover .trigger {
            display: block;
            background-color: #333;
            //border: 1px solid $grey-color-light;
        }

        .page-link {
            display: block;
            padding: 5px 10px;

            &:not(:last-child) {
                margin-right: 0;
            }
            //margin-left: 20px;
        }

        .nav-item {
            float: none;

            &:not(:last-child) {
                margin-left: 0;
            }           
        }

        .nav-selected {
            border-bottom: 0;
        }
    }
}




/**
 * Site footer
 */
.site-footer {
    padding: 0;
}

.footer-heading {
    font-size: 18px;
    margin-bottom: $spacing-unit / 2;
}

.contact-list,
.social-media-list {
    list-style: none;
    margin-left: 0;
}

.contact-list li,
.social-media-list li{
    display: inline;
    &:not(:last-child) {
        margin-right: $spacing-unit / 2;
    }
}

.footer-col-wrapper {
    font-size: 15px;
    color: $grey-color;
    padding-left: -$spacing-unit / 2;
    padding: $spacing-unit  0;
    border-top: 1px solid rgba(0,0,0,0.1);
    @extend %clearfix;
}

.footer-col {
    float: left;
    //padding-left: $spacing-unit / 2;
}

.footer-col-1 {
    float: left !important;
}

.footer-col-2 {
    width: -webkit-calc(20% - (#{$spacing-unit} / 2));
    width:         calc(20% - (#{$spacing-unit} / 2));
}

.footer-col-3 {
    float: right !important;
}

@include media-query($on-laptop) {
    .foot-hidden {
        display: none;
    }
}

@include media-query($on-palm) {
    .foot-hidden {
        display: none;
    }
}



/**
 * Page content
 */

.page {
    padding: $header-height 0 $spacing-unit;
}

.page-wrapper {
    //border: 1px solid rgba(0,0,0,0.075);
    //background-color: rgba(255,255,255,0.95);
    // box-shadow: 0 0 5px rgba(0,0,0,0.1);
    //padding: $spacing-unit;
}

.page-content {
    padding: $spacing-unit 0;
}

.page-heading {
    font-size: 16px;
    padding: 13px 2px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 13px;
}

.post-list {
    margin-left: 0;
    list-style: none;

    > li {
        margin-bottom: $spacing-unit;
    }
}

.post-meta {
    font-size: $small-font-size;
    color: $grey-color;
}

.post-link {
    display: block;
    font-size: 24px;
}



/**
 * Posts
 */
.post-header {
    margin-bottom: $spacing-unit;
}

.post-title {
    font-size: 32px;
    letter-spacing: -1px;
    line-height: 1;

    @include media-query($on-laptop) {
        font-size: 30px;
    }
}

.post-content {
    margin-bottom: $spacing-unit;

    h1 {
        font-size: 30px;

        @include media-query($on-laptop) {
            font-size: 28px;
        }
    }

    h2 {
        font-size: 26px;

        @include media-query($on-laptop) {
            font-size: 24px;
        }
    }

    h3 {
        font-size: 20px;

        @include media-query($on-laptop) {
            font-size: 18px;
        }
    }

    h4 {
        font-size: 18px;

        @include media-query($on-laptop) {
            font-size: 16px;
        }
    }
}
